<?php
    session_start();
    include "/opt/lampp/htdocs/dom/html/db.php";
    $aid = $_SESSION["aid"] = 101002;
    $title = @$_GET['title'];
    $content = @$_GET['content'];
    
    echo $aid,$title,$content;

    $sql = "insert into news(title,content,buildtime,aid) value('$title','$content',now(),$aid)";
    $db = new DB();
    $list = $db->insert($sql);
    if($list){
        header("location:../admin_html/admin2.php");
    }else{
        die("添加失败");
    }







?>